package cn.edu.scau.cmi.zenghanxiong.comprehensive;

import cn.edu.scau.cmi.zenghanxiong.client.*;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.stage.Stage;

public class ComprehensiveController {
	@FXML
    private Button button1;
    @FXML
    private Button button2;
    @FXML
    private Button button3;
    @FXML
    private Button button4;
    @FXML
    private Button button5;
    @FXML
    private Button button6;
    @FXML
    private Button button7;

    public void click1() {
        InterProgrammingClient.main(null);
    }

    public void click2() {
        new SingletonClient().start(new Stage());
        new MultipleCasesClient().start(new Stage());
    }

    public void click3() {
        new SimpleFactoryMethodClient().start(new Stage());
        FactoryClient.main(null);
        AbstractFactoryClient.main(null);
    }

    public void click4() {
        new AdapterClient().start(new Stage());
    }

    public void click5() {
        new ConsistentCompositeClient().start(new Stage());
        new SafeCompositeClient().start(new Stage());
    }

    public void click6() {
    	new HibernateClient().start(new Stage());
    }

    public void click7() {
    	Spring03SingletonApplicationContextClient.main(null);
    }

}
